Javascript Why Use Map Over Object